package org.example.myleet.p1576;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(isPass(solution.modifyString("?zs")));
        Assert.isTrue(isPass(solution.modifyString("ubv?w")));
        Assert.isTrue(isPass(solution.modifyString("j?qg??b")));
        Assert.isTrue(isPass(solution.modifyString("??yw?ipkj?")));
    }

    private static boolean isPass(String s) {
        char c = s.charAt(0);
        for (int i = 1; i < s.length(); ++i) {
            char x = s.charAt(i);
            if (x == c) {
                return false;
            }
        }
        return true;
    }
}
